package com.ojoin.trade.common_core.web.service;

import com.ojoin.trade.common.exception.BusinessException;
import com.ojoin.trade.common.web.service.BaseService;
import com.ojoin.trade.common_core.web.domain.TbAdminUser;

/**
 * 后台管理员服务接口
 * @author guoting
 *
 */
public interface AdminUserBaseService extends BaseService<TbAdminUser> {
	
	/**
	 * 新建后台管理员
	 * @param adminuservo
	 * @return
	 * @throws BusinessException
	 */
	public int insertAdminUser(TbAdminUser adminuservo) throws BusinessException;
	
	/**
	 * 根据用户名和密码查询后台管理员信息(T0000024)
	 * @param name
	 * @param pwd
	 * @return
	 * @throws BusinessException
	 */
	public TbAdminUser queryAdminUserByNameAndPwd(String name, String pwd)
			throws BusinessException;
	
	/**
	 * 根据用户名查询后台管理员信息
	 * @param name
	 * @param pwd
	 * @return
	 * @throws BusinessException
	 */
	public TbAdminUser queryAdminUserByName(String name)
			throws BusinessException;
}
	
